   <!-- <form id="system-configuration-form" name="system-configuration-form"> -->
    <?php echo $this->Form->create('Configuration', array('default' => false, 'id' => 'system-configuration-form', 'url' => array('controller' => 'Administration', 'action' => 'add'),'inputDefaults' => array('label' => false,'div' => false)));?>
       <div class="pane-header">
           System Configuration
       </div>
       <br />
       <div id="config-details-box" style="float:left; width: 60%;">
              <div class="pane-sub-header">
                     <strong>Edit System Configuration</strong>
              </div>
              <div id="details-form-window" style='padding:10px;'>
                  <?php
                    if(!empty($allConfiguration)){
                       // echo debug($allConfiguration);
                        
                        foreach($allConfiguration as $config_key => $config_value_array){
                            $config_value = $config_value_array['value'];
                            $config_description = $config_value_array['description'];
                            
                            echo "<div style='margin-bottom:20px; border-bottom:1px solid #ddd; ' >";
                                echo "<div style='margin-bottom:5px;'> $config_description </div>";
                                echo "<div>".$this->Form->input("Configuration.$config_key.value", array('label' => false, 'class' => 'validate[required] ','value'=>"$config_value"))."</div>"; 
                                echo "<div>";
                                    echo $this->Form->input("Configuration.$config_key.id", array('label' => false, 'value'=>"$config_key"));
                                    echo $this->Form->input("Configuration.$config_key.modified_by", array('type'=>'hidden','label' => false, 'value'=>"$loggedUser_id"));
                                    echo $this->Form->input("Configuration.$config_key.modification_date", array('type'=>'hidden','label' => false, 'value'=>"$modified_date"));
                                echo "</div>"; 
                            echo "</div>";
                        }
                    }
                  ?>
              </div>
       </div>
       <div id="config-actions-buttons">
               <?php echo $this->Form->button($this->Html->image('ico-49.gif', array('width' => '16', 'height' => '16', 'align' => 'left', 'border' => '0')).'&nbsp;Save Settings', array('div' => false, 'label' => false, 'class' => 'save','id' => 'system-config-btn', 'type'=>'submit')); ?>
               
        </div>
<?php echo $this->Form->end();?>
  <!--  </form> -->